package net.lijingye.education.request;

import net.lijingye.education.request.validator.Gender;
import org.hibernate.validator.constraints.Email;

import javax.validation.constraints.Pattern;

/**
 * Created by LijingYe on 2016/3/26.
 */
public class PutProfileRequest {
    private String name;

    @Gender
    private String gender;

    @Pattern(regexp = "\\d{4}/\\d{2}/\\d{2}")
    private String birthday;

    private String telephone;

    @Email
    private String email;

    private String province;

    private String city;

    private String hobbies;

    private String motto;

    public PutProfileRequest() {
    }

    public PutProfileRequest(String name, String gender, String birthday, String telephone, String email, String province, String city, String hobbies, String motto) {
        this.name = name;
        this.gender = gender;
        this.birthday = birthday;
        this.telephone = telephone;
        this.email = email;
        this.province = province;
        this.city = city;
        this.hobbies = hobbies;
        this.motto = motto;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getHobbies() {
        return hobbies;
    }

    public void setHobbies(String hobbies) {
        this.hobbies = hobbies;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    @Override
    public String toString() {
        return "PutProfileRequest{" +
                "name='" + name + '\'' +
                ", gender=" + gender +
                ", birthday='" + birthday + '\'' +
                ", telephone='" + telephone + '\'' +
                ", email='" + email + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", hobbies='" + hobbies + '\'' +
                ", motto='" + motto + '\'' +
                '}';
    }
}
